<h1>Listing gardens</h1>

<table>
  <tr>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @gardens.each do |garden| %>
  <tr>
    <td><%=garden.id %></td>
    <td><%=garden.name %></td>
    <td><%=garden.desc %></td>
    <td><%= link_to 'Edit', edit_garden_path(garden) %></td>
    <td><%= link_to 'Destroy', garden, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Garden', new_garden_path %>
